﻿using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Ninject;
using Ninject.Modules;

namespace StoryCardLogic.Test
{
    [TestClass]
    public class StoryTests
    {
        [TestMethod]
        public void StoryTextIsSetted()
        {
            const string sampleStoryText = "story text";
            var story = new Story(sampleStoryText);
            Assert.AreEqual(sampleStoryText, story.Text);
            Assert.AreEqual(story.Prioritet, 0);
        }

        [TestMethod]
        public void StoryManagerSetStories()
        {
            var manager = new StoryManager();
            var storyList = new List<Story>() { new Story("text") };
            manager.Stories = storyList;
            Assert.AreEqual(manager.Stories[0].Text, storyList[0].Text);
        }

    }

}
